import request from '@/utils/request'

// 查询用户交易明细列表
export function listDealInfo (query) {
  return request({
    url: '/system/dealInfo/list',
    method: 'get',
    params: query
  })
}

// 查询用户交易明细详细
export function getDealInfo (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/dealInfo/getInfo',
    method: 'get',
    params: params
  })
}

// 新增用户交易明细
export function addDealInfo (data) {
  return request({
    url: '/system/dealInfo/insert',
    method: 'post',
    data: data
  })
}

// 修改用户交易明细
export function updateDealInfo (data) {
  return request({
    url: '/system/dealInfo/update',
    method: 'post',
    data: data
  })
}

// 删除用户交易明细
export function delDealInfo (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/dealInfo/delete',
    method: 'post',
    params: params
  })
}
// 批量删除用户交易明细
export function delBatchDealInfo (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/dealInfo/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入用户交易明细
export function importData (data) {
  return request({
    url: '/system/dealInfo/importData',
    method: 'post',
    data: data
  })
}
